"""
总路由文件
"""
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from NoFish import settings
from user.views import login_index,home_index,admin_index,map_index

urlpatterns = [
    path("", login_index),
    path('admin/', admin.site.urls),
    path("home_index", home_index, name="home_index"),  # 用户主页
    path("admin_index",admin_index),                    # 管理员主页
    path("admin_map",map_index),                        #  地图分布
    path("user/", include("user.urls")),                # 用户模块
    path("area/", include("area.urls")),                # 地区模块
    path("article/", include("article.urls")),          # 文章模块
    path("friends/",include("friends.urls")),           # 好友模块
    path("love/",include("love.urls")),                 # 点赞模块
    path("content/",include("content.urls")),           # 评论模块
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
